package com.wang.myapplication.network.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by xhwang on 2018/4/26.
 */

public class ClassInfoListResponse {
    @SerializedName("DT")
    private String dt;
    @SerializedName("Description")
    private String description;
    @SerializedName("Result")
    private int result;
    @SerializedName("ClassList")
    private List<Classlist> classlist;
    @SerializedName("Thums")
    private List<Thums> thums;

    public void setDt(String dt) {
        this.dt = dt;
    }

    public String getDt() {
        return dt;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public int getResult() {
        return result;
    }

    public void setClasslist(List<Classlist> classlist) {
        this.classlist = classlist;
    }

    public List<Classlist> getClasslist() {
        return classlist;
    }

    public void setThums(List<Thums> thums) {
        this.thums = thums;
    }

    public List<Thums> getThums() {
        return thums;
    }

    @Override
    public String toString() {
        return "ClassInfoListResponse{" + "dt='" + dt + '\'' + ", description='" + description + '\'' + ", result=" + result + ", classlist=" + classlist + ", thums=" + thums + '}';
    }

    public List<Classlist> transferDatalists(ClassInfoListResponse pObj) {
        List<Classlist> dataLists = pObj.getClasslist();
        List<Thums> thumsList = pObj.getThums();
        for (int i = 0; i < dataLists.size(); i++) {
            dataLists.get(i).viewpath = thumsList.get(i).viewpath;
        }
        return dataLists;
    }

    public class Classlist {

        @SerializedName("Tag")
        private String tag;
        @SerializedName("ArchiveTypeID")
        private int archivetypeid;
        @SerializedName("BeginTime")
        private String begintime;
        @SerializedName("CreateUser")
        private String createuser;
        @SerializedName("DataSourceID")
        private int datasourceid;
        @SerializedName("Description")
        private String description;
        @SerializedName("EndTime")
        private String endtime;
        @SerializedName("FileTypeID")
        private int filetypeid;
        @SerializedName("FolderTypeID")
        private int foldertypeid;
        @SerializedName("ID")
        private int id;
        @SerializedName("Name")
        private String name;
        @SerializedName("OrgID")
        private int orgid;
        @SerializedName("PeerClassID")
        private String peerclassid;
        @SerializedName("PermID")
        private int permid;
        @SerializedName("PermType")
        private int permtype;
        @SerializedName("ProjectType")
        private int projecttype;
        @SerializedName("RootID")
        private int rootid;

        public String viewpath;

        public void setTag(String tag) {
            this.tag = tag;
        }

        public String getTag() {
            return tag;
        }

        public void setArchivetypeid(int archivetypeid) {
            this.archivetypeid = archivetypeid;
        }

        public int getArchivetypeid() {
            return archivetypeid;
        }

        public void setBegintime(String begintime) {
            this.begintime = begintime;
        }

        public String getBegintime() {
            return begintime;
        }

        public void setCreateuser(String createuser) {
            this.createuser = createuser;
        }

        public String getCreateuser() {
            return createuser;
        }

        public void setDatasourceid(int datasourceid) {
            this.datasourceid = datasourceid;
        }

        public int getDatasourceid() {
            return datasourceid;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getDescription() {
            return description;
        }

        public void setEndtime(String endtime) {
            this.endtime = endtime;
        }

        public String getEndtime() {
            return endtime;
        }

        public void setFiletypeid(int filetypeid) {
            this.filetypeid = filetypeid;
        }

        public int getFiletypeid() {
            return filetypeid;
        }

        public void setFoldertypeid(int foldertypeid) {
            this.foldertypeid = foldertypeid;
        }

        public int getFoldertypeid() {
            return foldertypeid;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getId() {
            return id;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getName() {
            return name;
        }

        public void setOrgid(int orgid) {
            this.orgid = orgid;
        }

        public int getOrgid() {
            return orgid;
        }

        public void setPeerclassid(String peerclassid) {
            this.peerclassid = peerclassid;
        }

        public String getPeerclassid() {
            return peerclassid;
        }

        public void setPermid(int permid) {
            this.permid = permid;
        }

        public int getPermid() {
            return permid;
        }

        public void setPermtype(int permtype) {
            this.permtype = permtype;
        }

        public int getPermtype() {
            return permtype;
        }

        public void setProjecttype(int projecttype) {
            this.projecttype = projecttype;
        }

        public int getProjecttype() {
            return projecttype;
        }

        public void setRootid(int rootid) {
            this.rootid = rootid;
        }

        public int getRootid() {
            return rootid;
        }

    }


    public class Thums {

        @SerializedName("Error")
        private String error;
        @SerializedName("FileName")
        private String filename;
        @SerializedName("FilePath")
        private String filepath;
        @SerializedName("FileSize")
        private String filesize;
        @SerializedName("FileType")
        private String filetype;
        @SerializedName("ViewPath")
        private String viewpath;

        public void setError(String error) {
            this.error = error;
        }

        public String getError() {
            return error;
        }

        public void setFilename(String filename) {
            this.filename = filename;
        }

        public String getFilename() {
            return filename;
        }

        public void setFilepath(String filepath) {
            this.filepath = filepath;
        }

        public String getFilepath() {
            return filepath;
        }

        public void setFilesize(String filesize) {
            this.filesize = filesize;
        }

        public String getFilesize() {
            return filesize;
        }

        public void setFiletype(String filetype) {
            this.filetype = filetype;
        }

        public String getFiletype() {
            return filetype;
        }

        public void setViewpath(String viewpath) {
            this.viewpath = viewpath;
        }

        public String getViewpath() {
            return viewpath;
        }

    }

}
